package shop.services.front.spec.dao.impl;

import org.springframework.stereotype.Repository;
import shop.core.common.dao.BaseDao;
import shop.core.common.dao.page.PagerModel;
import shop.services.front.spec.bean.Spec;
import shop.services.front.spec.dao.SpecDao;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by Administrator on 2017/4/24.
 */
@Repository("specDaoFront")
public class SpecDaoImpl implements SpecDao {
    @Resource
    private BaseDao dao;
    public void setDao(BaseDao dao){this.dao=dao;}

    public SpecDaoImpl() {
        super();
    }

    @Override
    public int insert(Spec spec) {
        return 0;
    }

    @Override
    public int delete(Spec spec) {
        return 0;
    }

    @Override
    public int update(Spec spec) {
        return dao.update("front.spec.update",spec);
    }

    @Override
    public Spec selectOne(Spec spec) {
        return (Spec) dao.selectOne("front.spec.selectOne",spec);
    }

    @Override
    public PagerModel selectPageList(Spec spec) {
        return null;
    }

    @Override
    public List<Spec> selectList(Spec spec) {
        return dao.selectList("front.spec.selectList", spec);
    }

    @Override
    public int deleteById(int id) {
        return 0;
    }

    @Override
    public Spec selectById(String id) {
        return null;
    }


}
